{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <meta name="description" content="Converse.js: Open Source Browser-Based Instant Messaging"/>
    <link rel="stylesheet" type="text/css" href="{% static 'hqz/css/stylesheet.css' %}"/>
    <link rel="stylesheet" type="text/css" href="{% static 'hqz/css/converse.css' %}"/>
    <!--<script data-main="main" src="components/requirejs/require.js"></script>-->
    <script src="{% static 'hqz/js/converse.min.js' %}"></script>
    <script src="{% static 'hqz/js/locale/locales.js' %}"></script>
    <script src="{% static 'hqz/js/locale/single_locale.js' %}"></script>
    <title>Converse.js</title>
</head>

<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
    <header class="inner">
    </header>
</div>

<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
</div>

<!-- FOOTER  -->
<div id="footer_wrap" class="outer">
    <footer class="inner">
        <p class="copyright">Converse.js created by <a href="/" target="_blank">jcbrand</a></p>
    </footer>
</div>

<div id="conversejs"></div>

<script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">try {
    var pageTracker = _gat._getTracker("UA-2128260-8");
    pageTracker._trackPageview();
} catch (err) {
}</script>
</body>
<script>
    require(['converse'], function (converse) {
        converse.initialize({
            allow_otr: true,
            auto_list_rooms: false,
            auto_subscribe: false,
            // bosh_service_url: 'https://conversejs.org/http-bind', // Please use this connection manager only for testing purposes
            bosh_service_url: 'http://localhost/http-bind',
            debug: true,
            hide_muc_server: false,
            i18n: locales['de'], // Refer to ./locale/locales.js to see which locales are supported
            prebind: false,
            show_controlbox_by_default: true,
            xhr_user_search: false
        });
    });
</script>
</html>
